package com.cloud.sso.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.sso.dto.UserQueryDto;
import com.cloud.sso.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    User getByUserName(String userName);

    List<User> queryUserPage(UserQueryDto user);

    Integer getCount(UserQueryDto user);

    List<User> searchByUserName(String userName);

    int updateLoginTime(@Param("id")String id);
}
